<?php

// 6/30/2010: immanuel192 write this action for delete emails

if (!defined('EXPONENT')) exit('');
global $db;

if (exponent_permissions_check(array("administrate", "delete"),$loc)) { // for adminsitrator only
	if (isset($_REQUEST['id']))
		$id=$_REQUEST['id'];
		$db->delete("maillinglist","id = '{$id}'");
        exponent_flow_redirect(SYS_FLOW_ACTION);
}
else
{
	echo SITE_404_HTML;	
}
?>
